<div class="n2_myinfo">
    <div style="padding-top:29px;overflow:hidden;zoom:1;line-height:20px;color:#695e4a">
        <div class="cyMyInfoLeftWrapper" >

        <table cellpadding="0" cellspacing="0" style="margin-top:10px;">
        <tr>
        <td rowspan="6" align="center" valign="top" width="75"><img width="50" height="50" src="<?=$user['g_head']?>"/></td>
        <td colspan="2">您好，<?=htmlspecialchars(htmlspecialchars_decode($user['g_name']))?></td>
        </tr>
        <tr><td colspan="2">等级：<?=$user['level']['level']?></td></tr>
        <tr><td colspan="2">活跃天数：<?=$user['g_active_day']?></td></tr>
        <tr><td colspan="2">成功邀请好友：<?=$user['g_gold_invite_count']?></td></tr>
        <tr><td width="100">当前金币：<?=$user['g_gold']?></td><td>已消费金币：<?=$user['g_gold_use']?></td></tr>
        <tr><td width="100">当前积分：<?=$user['g_money']?></td><td>已消费积分：<?=$user['g_money_use']?></td></tr>
        </table>
        
        </div>
        <div class="cyMyInfoRightWrapper">
        
        <div id="user_info_view">
            <table cellpadding="0" cellspacing="0" style="margin-top:10px;line-height:20px;color:#695e4a" width="470">
            <tr><td width="200">快递收货人:<?=$user['g_realname']?></td><td>身份证号:<?=$user['g_idcard']?></td></tr>        
            <tr><td colspan="2">快递收货地址:<?=$user['g_address']?></td></tr>        
            <tr><td colspan="2">邮编:<?=$user['g_zipcode']?></td></tr>        
            <tr><td width="200">联系手机:<?=$user['g_phone']?></td><td>电子邮箱:<?=$user['g_mail']?></td></tr>  
            <tr><td colspan="2" style="color:red">我们会对您的信息严格保密，请确保信息真实，以确保宝贝能准确送达。</td></tr>               
            <tr><td colspan="2"><a class="bta4 fr" href="javascript:showEditInfo()">修改信息</a></td></tr>        
            </table>
        </div>
                    
        <div id="user_info_edit" style="display:none">
            <form name='update_info' id="update_info" method="POST" action="">
            <table cellpadding="0" cellspacing="0" style="margin-top:10px;line-height:20px;color:#695e4a" width="470">
            <tr><td width="200">快递收货人:<input type="text" style="width:60px" name="realname" value="<?=$user['g_realname']?>" /></td><td>身份证号:<input type="text" name="idcard" value="<?=$user['g_idcard']?>" /></td></tr>        
            <tr><td colspan="2">快递收货地址:<input type="text"  style="width:300px" name="address" value="<?=$user['g_address']?>" /></td></tr>        
            <tr><td colspan="2">邮编:<input type="text"  style="width:60px" name="zipcode" value="<?=$user['g_zipcode']?>" /></td></tr>        
            <tr><td width="200">联系手机:<input type="text" style="width:90px" name="phone" value="<?=$user['g_phone']?>" /></td><td>电子邮箱:<input type="text" name="mail" value="<?=$user['g_mail']?>" /></td></tr>  
            <tr><td colspan="2" style="color:red">我们会对您的信息严格保密，请确保信息真实，以免宝贝不能准确送达。</td></tr>               
            <tr><td colspan="2"><a class="bta4 fr" href="javascript:saveEditInfo()">确认修改</a><a class="bta4g fr" style="margin-right:20px"  href="javascript:cancelEditInfo()">放弃修改</a><span id="user_info_edit_hint" class="user_info_edit_hint" ></span><br /></td></tr>        
            </table>        
            </form>
        </div>
        </div>
    </div>
</div>
<?php 
function show_a_link($d) { 
    $js_act = $d['how_get'] == 'zhuan'?'showProduct':'showChangeProduct';
    $p_a = '<a href="javascript:'.$js_act.'('.$d['product_info']['g_id'].')">'.$d['product_info']['g_name'].'</a>';
    echo $p_a;
}
?>


<div class="myluck_list">
    <div style="padding-top:35px;margin:0px 12px" class="applytab">
        <span class="applytab_bt_now" onclick="myLuckShowTab(1)" id="myluck_bt1">已领取宝贝</span>
        <span class="applytab_bt_x" onclick="myLuckShowTab(2)" id="myluck_bt2">未领取宝贝</span>
        <span class="applytab_bt_x" onclick="myLuckShowTab(3)" id="myluck_bt3">快递查询</span>
        <span class='applytab_hint' style="color:#e60012">
        温馨提示：成功分享您的宝贝，将额外获得5积分奖励
        </span>    
    </div>
    <div id="myluck_ct1" class="myluck_ct">
        <?php require(APP.'views'.DS.'user'.DS.'myluck_luck_get.ctp'); ?>
        <?php require(APP.'views'.DS.'user'.DS.'myluck_coupon_get.ctp'); ?>    
    </div>
    <div id="myluck_ct2" class="myluck_ct" style="display:none">
        <?php require(APP.'views'.DS.'user'.DS.'myluck_kuaidi_not_send.ctp'); ?>
        <?php require(APP.'views'.DS.'user'.DS.'myluck_guitai_not_send.ctp'); ?>
        <?php require(APP.'views'.DS.'user'.DS.'myluck_shangjia_not_send.ctp'); ?>       
    </div>
    <div id="myluck_ct3" class="myluck_ct" style="display:none">
        <?php require(APP.'views'.DS.'user'.DS.'myluck_kuaidi.ctp'); ?>
    </div>
</div>

<script type="text/javascript">
var nowtab = <?=$tab?>;
<?php if (!empty($tab) && $tab!=1 ) { ?>
myLuckShowTab(<?=$tab?>);
<?php } ?>
</script>
<div style="display:none" id="luck_hidden_submit"></div>
